# coding:utf-8
# __ahtu__ = 'Felix'

# 首页
from .basePage import BasePage
from selenium.webdriver.common.by import By


class HomePage(BasePage):
    def __init__(self,driver):
        BasePage.__init__(self,driver)
        self.search_input = (By.ID, u'kw')
        self.search_button = (By.ID, u'su')

    def input_search_text(self, text):
        self.input(self.search_input, text=text)

    def click_search_button(self):
        self.click(self.search_button)
